layui.use(['layer', 'form', 'table', 'ztree', 'laydate', 'admin', 'ax'], function () {
    var layer = layui.layer;
    var form = layui.form;
    var table = layui.table;
    var $ax = layui.ax;
    var laydate = layui.laydate;
    var admin = layui.admin;

    /**
     * 系统管理--用户管理
     */
    var userProfit = {
        tableId: "userProfitTable",    //表格id
        condition: {
            name: "",
            deptId: "",
            timeLimit: ""
        }
    };

    /**
     * 初始化表格的列
     */
    userProfit.initColumn = function () {
        return [[
            {type: 'checkbox'},
            {field: 'userProfitLogId', hide: true, sort: true, title: 'userProfitExtractLogId'},
            {field: 'profit', sort: true, title: '收益'},
            {field: 'outTradeNo', sort: true, title: '订单号'},
            {field: 'creaTime', sort: true, title: '创建时间'}
        ]];
    };

    var tableResult = table.render({
        elem: '#' + userProfit.tableId,
        url: Feng.ctxPath + '/exam/profitLogList?userId='+Feng.getUrlParam("userId"),
        page: true,
        height: "full-98",
        cellMinWidth: 120,
        cols: userProfit.initColumn()
    });


});
